package com.oc.mba.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OcBackendUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "oc_backend_user", catalog = "openmba")
public class OcBackendUser implements java.io.Serializable {

	// Fields

	private Integer id;
	private String adminName;
	private String password;

	// Constructors

	/** default constructor */
	public OcBackendUser() {
	}

	/** full constructor */
	public OcBackendUser(String adminName, String password) {
		this.adminName = adminName;
		this.password = password;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "adminName", nullable = false)
	public String getAdminName() {
		return this.adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	@Column(name = "password", nullable = false)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}